package com.adwin.addcoin.ui.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import androidx.viewpager2.adapter.FragmentStateAdapter

class MainFragmentManagerAdapter(fragmentActivity: FragmentActivity, private val listFragments:List<Fragment>) : FragmentStateAdapter(fragmentActivity){
    override fun getItemCount(): Int {
        return listFragments.size
    }

    override fun createFragment(position: Int): Fragment {
        return listFragments[position]
    }

}